package net.myspring.common.handsontable;

import net.myspring.common.utils.Collections3;
import net.myspring.common.utils.StringUtils;

import java.util.List;

/**
 * Created by liuj on 2016-09-27.
 */
public class HandSonTableUtils {

    public static String getValue(List<Object> row, Integer index) {
        if (Collections3.isEmpty(row) || row.size() - 1 < index) {
            return "";
        } else {
            return StringUtils.toString(row.get(index)).trim();
        }
    }


}
